/*
 * @Author: ShaXin
 * @Date: 2022-01-11 15:53:11
 * @LastEditors: jgg
 * @LastEditTime: 2022-01-14 11:21:26
 */
import request from '../utils/request'


const abcApi = {}
// 配件
abcApi.pageList = (params) => {
    return request({
        url: '/parts/list',
        method: 'get',
        params:params
    })
}

abcApi.findById = (params) => {
    return request({
        url: `/parts/getById?id=${params}`,
        method: 'get',
        params:{}
    })
}
abcApi.deleteInfo = (params) => {
    return request({
        url: `/parts/del`,
        method: 'get',
        params:params
    })
}
abcApi.save = (params) => {
    return request({
        url: '/parts/save',
        method: 'post',
        data:params
    })
}
abcApi.update = (params) => {
    return request({
        url: `/parts/edit`,
        method: 'post',
        data:params
    })
}
//
abcApi.findAllStation = (params) => {
    return request({
        url: `/baseinfo/camera/findAllStation`,
        method: 'get',
        params:{}
    })
}

/////操作日志
///web/sys/log/list/current/{current}/pageSize/{pageSize}
abcApi.logList = (params) => {
    return request({
        url: `/web/sys/log/list/current/${params.page}/pageSize/${params.size}`,
        method: 'get',
        params:params
    })
}
export default abcApi